package com.niubility.dao;

import com.niubility.entity.Pwd;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("PwdDao")
public interface PwdDao {
    //加载所有用户
    public List<Pwd> LoadAll();

    //通过Id查询某一个用户的密码
    public Pwd LoadById(Integer userId);

    //添加用户
    public boolean Save(Pwd pwd);


    //用用户id删除用户
    public boolean Delete(Integer userId);

    //通过id数组删除用户
    public boolean deleteUserByIds(Integer[] userIds);

    //更新用户信息
    public boolean Update(Pwd pwd);
}
